<?php

class ReporteBoletines extends CI_Controller{
private $data;
	public function __construct(){
		parent::__construct();
		$this->data['url1']=site_url(array("reportes","reporteBoletines","buscar"));
		$this->data['id_menu']=6;
		session_start();
		if(!isset($_SESSION['VALID']) || $_SESSION['VALID'] != 1){
			redirect('login/login');
		}else{
			$this->data['menu']=$_SESSION['ACCESOS'];
		}
	}
	
	public function index()
	{
		$this->load->view("cabecera");
		$this->load->view("menu",$this->data);
		$this->load->model("reportes/reportes_model");
		$this->load->view("reportes/V_reporteBoletinDetalle",$this->data);		
	}
	
	public function buscar(){
		$tipoboletin=$this->input->post("tipoboletin");
		$this->load->model("reportes/reportes_model");
		$this->data['can']=$this->reportes_model->reporteboletin($tipoboletin);
		echo $this->load->view("reportes/VR_reporteBoletinDetalle",$this->data);
	}
}